import request from "@/plugins/request";
let pre = "/personal/addr";
if (process.env.NODE_ENV !== "development") {
    pre = "/api/sa/prslcenter" + pre;
}

// 查询个人收货地址
export function getQuery (data) {
    return request({
        url: `${pre}/queryReceiverAddr`,
        method: "post",
        data
    });
}
// 增加个人收货地址
export function addAddress (data) {
    return request({
        url: `${pre}/addReceiverAddr`,
        method: "post",
        data
    });
}
// 修改个人收货地址
export function editAddress (data) {
    return request({
        url: `${pre}/editReceiverAddr`,
        method: "post",
        data
    });
}
// 删除个人收货地址集合 
export function delAddress (params) {
    return request({
        url: `${pre}/delReceiverAddr`,
        method: "get",
        params
    });
}